﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;

namespace WebApplication
{
    public partial class TEST : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int howManyPages = 0;
                string page = Request.QueryString["Page"] ?? "";
                List<Entities.SanPham> data = SanPhamBLL.SanPham_HienThi("3", out howManyPages);
                dlDSSanPham.DataSource = data;
                dlDSSanPham.DataBind();
                if (data != null)
                    lblStatus.Text = "Thanh Cong";
                else
                    lblStatus.Text = "That Bai";
            }
        }
    }
}